package com.ydlclass.loadbalance.loadbalancer;

import com.ydlclass.loadbalance.LoadBalancer;
import com.ydlclass.message.YrpcMessage;

import java.net.InetSocketAddress;
import java.util.List;

/**
 * 对负载均衡进行权重增强
 *
 * @author it楠老师
 * @createTime 2023-03-09
 */
public class WeightLoadBalanceDecorator implements LoadBalancer {

    LoadBalancer loadBalance;

    public WeightLoadBalanceDecorator(LoadBalancer loadBalance) {
        this.loadBalance = loadBalance;
    }

    @Override
    public InetSocketAddress selectServiceAddress(List<InetSocketAddress> serviceInetSocketAddress, YrpcMessage yrpcMessage) {
        return null;
    }
}
